﻿@{
    ViewData["Title"] = "Signalr服务器推送消息到客户端";
}
<div class="text-center">

    <div class="form-group mt-5">
        <input class="form-control" id="username" placeholder="用户名">
    </div>
    <div class="form-group">
        <input class="form-control" id="message" placeholder="输入发送信息">
    </div>
    <div class="form-group">
        <textarea class="form-control" id="content" rows="10"></textarea>
    </div>
    <div class="row">
        <div class="col-3"> <input type="button" id="conn" class="btn btn-success" value="连接Signalr" /></div>
        <div class="col-3"><input type="button" id="send" class="btn btn-primary" value="发送信息" /></div>
        <div class="col-3"><input type="button" id="close" class="btn btn-primary" value="关闭Signalr" /></div>
        <div class="col-3"><input type="button" id="clear" class="btn btn-primary" value="清空文本框" /></div>

    </div>

</div>
<div class="row">
    <div class="col-12">
        <hr />
    </div>
</div>
<script src="~/lib/jquery/dist/jquery.js"></script>
<script src="~/js/signalr.js"></script>
<script src="~/js/chat.js"></script>
